<?php
function login() { 
echo 
"<table width=\"250\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#CCCCCC\">
<tr>
<form name=\"form1\" method=\"post\" action=\"check_login.php\">
<td>
<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#FFFFFF\">
<tr>
<td colspan=\"3\"><strong>Member Login </strong></td>
</tr>
<tr>
<td width=\"70\">Username</td>
<td width=\"5\"></td>
<td width=\"300\"><input name=\"myusername\" type=\"text\" id=\"myusername\"
value = \"Username\"; onfocus=\"if(this.value==this.defaultValue) this.value='';\"; ></td>
</tr>
<tr>
<td>Password</td> 
<td></td>
<td><input name=\"mypassword\" type=\"password\" id=\"mypassword\"
value = \"Password\"; onfocus=\"if(this.value==this.defaultValue) this.value='';\";  ></td>
<td></td>
</tr>
<tr>
<td><input type=\"button\" name=\"Register\" value=\"Register\" onclick=\"location = 'login_form.php';\"></td>
<td>   or     </td>
<td><input type=\"submit\" name=\"Submit\" value=\"Log In\"></td>
</tr>
</table>
</td>
</form>
</tr>
</table>
";

}
function logout() {
echo	
"<table width=\"250\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CCCCCC\">
<tr>
<form name=\"form1\" method=\"post\" action=\"logout.php\">
<td>Welcome ";
echo $_SESSION['myusername']; 
echo ".  </td>
<td>&nbsp;</td>
<td><input type=\"submit\" name=\"Submit\" value=\"Logout\"></td>
</tr>
</table>
</td>
</form>
</tr>
</table>
";
}
?>